package com.wsoft.hr.pm.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wsoft.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhanggukai
 * @since 2025年02月17日 15:27:01
 */
@Getter
@Setter
@TableName("hr_organization")
@Schema(name = "HrOrganizationEntity", description = "人力-绩效-组织表")
public class HrOrganizationEntity extends BaseEntity {

    @Schema(description = "与id保持一致，仅用于权限控制用")
    @TableField("hr_org_id")
    private Long hrOrgId;

    @Schema(description = "父组织id")
    @TableField("pa_id")
    private Long paId;

    @Schema(description = "编码(3-3-3格式)")
    @TableField("code")
    private String code;

    @TableField("name")
    private String name;

    @Schema(description = "简称")
    @TableField("abbr_name")
    private String abbrName;

    @Schema(description = "数据字典(集团、公司、部门)")
    @TableField("type")
    private String type;

    @Schema(description = "组织负责人")
    @TableField("member_id")
    private Long memberId;

    @TableField("sort")
    private Integer sort;

    @TableField("remark")
    private String remark;

    @Schema(description = "编码(3-3-3格式) 用于数据权限")
    @TableField("auth_code")
    private String authCode;
}
